
import 'package:flutter/material.dart';

class DrawerDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
   return Drawer(
       backgroundColor: Colors.green,
       child: ListView(
         padding: EdgeInsets.zero,
         children: [
           UserAccountsDrawerHeader(
             margin: EdgeInsets.zero,
             decoration: BoxDecoration(
               image: DecorationImage(
                 image: AssetImage("images/pic6.jpg"),
                 fit: BoxFit.cover,
               ),
             ),
             accountName: Text("张三"),
             accountEmail: Text("12324@qq.com"),
           ),
         ],
       ));
  }

}